//获取标签
function callnewsData2(adress) {
    const different = document.querySelector(".scd_r");
    different.innerHTML = "";
    var xhr = new XMLHttpRequest();
    xhr.open("GET", adress);
    xhr.send();
    xhr.onreadystatechange = function () {
        if (xhr.readyState == 4) {
            if (xhr.status == 200) {
                var jsonText = xhr.responseText;
                var jsObj = JSON.parse(jsonText);
                //获取页面信息
                different.innerHTML += `
                      <div class="head">公司简介<em>COMPANY PROFILE</em></div>
        <div class="s_ctn">
        	<div class="about">
    <img src="${jsObj.url}" alt=""/>
                <div class="space_hx">&nbsp;</div>
                <div style="border-top:1px solid #ddd; padding-top:30px; font-size:14px; color:#777;">
                    <h1 style="font-size:34px; color:#333333; font-weight:normal;">${jsObj.txt}</h1>
                    <em>${jsObj.tl}</em>
                	<p style="margin-top:50px; text-indent:2em;font-size:20px;">${jsObj.cont}</p>
                    <p style="margin-top:50px; text-indent:2em;font-size:20px;">${jsObj.cont1}</p>
                    <p style="margin-top:50px; text-indent:2em;font-size:20px;">${jsObj.cont2}</p>
                    <p style="margin-top:50px; text-indent:2em;font-size:20px;">${jsObj.cont3} </p>
                </div>
            </div>
        </div>
    </div>`;
            }
        }
    };
}

const sign = document.querySelectorAll(".culture");

sign[0].onclick = function () {
    callnewsData2("../data/resume.json");
};

